Repository navigation
wifi: brcmfmac: Enable WPA3 on Z2W - #7762
Conversation
450bec7 to
d89104c
Compare
|
There are two firmware updates to go with this PR. For the Zero 2 W with 43436P there is a trial firmware: Then reboot and try again. Pi 400 has a new release candidate firmware: https://drive.google.com/file/d/1c6JX--IXy5RzhfFEB5nKQpxe1Z3A9six/view?usp=drive_link and revert with: You can install this trial kernel build by running N.B. This is intended to be run with wpasupplicant 2:2.10-24+rpt3, but install the trial kernel before updating wpasupplicant if you aren't running |
|
I've added a fourth commit that, with the right firmwares, gets H2E working on all devices:
I hope to get a release candidate for the 43436P firmware soon, and get them both shipped. |
Some firmware (e.g. Synaptics builds for SYN43456 and SYN43436s) advertises "extsae" but has neither in-firmware SAE nor the Infineon mgmt_frame/auth_status iovars. Instead it signals the start of authentication with a JOIN_START event, delivers received authentication frames in E_AUTH events, and accepts authentication frames and resume commands through the assoc_mgr_cmd iovar. Add support for this scheme so that the host supplicant can perform SAE: - On JOIN_START, raise an external authentication request to userspace and pause the firmware association state machine at the authentication response. - Forward SAE authentication frames from E_AUTH events to userspace. - Transmit authentication frames from userspace with the assoc_mgr_cmd SEND_AUTH command. - When userspace reports the result, resume the association, or disconnect on failure. Also map WPA2 + SAE AKM to WPA3_AUTH_SAE_PSK whenever SAE_EXT is supported, not only for Infineon firmware. Based on a patch supplied by Synaptics. Assisted-by: Claude Signed-off-by: Phil Elwell <phil@raspberrypi.com>
The SDIO device IDs of some Infineon chips are shared with Synaptics parts - e.g. the SYN43436s in the Raspberry Pi Zero 2 W is a BCM43430/1, like the CYW43438 - so the Synaptics firmware is run with the CYW vendor ops. That firmware advertises "extsae", but the CYW external SAE implementation relies on the mgmt_frame and auth_status iovars, which it lacks. The SAE commit frame is never sent and the connection times out. Instead of unconditionally installing the CYW mgmt_tx and external_auth ops, do it from feat_attach, and only if the firmware supports both iovars; otherwise the generic external SAE support is used. Both iovars are set-only, so a get returns BCME_UNSUPPORTED whether or not they exist - probe with a zero-length set instead, which Infineon firmware rejects with a length/allocation error. Move the BRCMF_FW_UNSUPPORTED definition to fwil.h so that vendor modules can use it. Link: raspberrypi#7528 Assisted-by: Claude Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Synaptics firmware for the SYN43436s and SYN43436P supports the in-firmware supplicant (FWSUP), so after an external SAE authentication the driver selects PSK offload, the supplicant skips the 4-way handshake, and the firmware doesn't perform it either. The AP then deauthenticates the station. Until now this has been avoided by disabling FWSUP with the feature_disable module parameter. Instead, clear the FWSUP feature when the generic (non-Infineon) external SAE support is in use, so that WPA3 works regardless of any module parameters. Assisted-by: Claude Signed-off-by: Phil Elwell <phil@raspberrypi.com>
With external SAE the firmware builds the (re)association request itself, adding its own RSNXE. That RSNXE advertises SAE H2E support even when the supplicant has authenticated using hunting-and-pecking (e.g. wpa_supplicant with the default sae_pwe=0), and an AP that supports both mechanisms rejects the association as a downgrade attack. The firmware uses an RSNXE passed after the RSN IE in the "wpaie" iovar, so for SAE connections pass the RSNXE from the supplicant's IEs, or an empty one if the supplicant didn't supply one. Tested on a Pi 5 (CYW43455, 7.45.286) against a mixed H&P/H2E AP: sae_pwe=0 now connects instead of being rejected with status 1, and sae_pwe=2 still connects using H2E. Assisted-by: Claude Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
One more update, reclassifying and tweaking some logging output to be less chatty. |
|
There is a release candidate firmware for the 43436P (BCM43430/2) variant of the Z2W available to download from here: Install as above, but with a different filename: Reversion is the same as before: |
Inspired by a patch from Synaptics, this set of patches enables WPA3 support on both flavours of Zero 2 W. It will also work with Pi 400, but only once a new 43456 firmware has been released.